package com.genertech.lms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.genertech.lms.dao.UserDao;
import com.genertech.lms.model.User;
import com.genertech.lms.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;
	
	public int addRecord(User user) {
		return userDao.addRecord(user);
	}

	public int updateRecord(User user) {
		return userDao.updateRecord(user);
	}

	public User findRecordByPrimaryKey(String id) {
		return userDao.findRecordByPrimaryKey(id);
	}

	public int getCounts() {
		return userDao.getCounts();
	}

}
